class Base:
    def __init__(self, driver):
        self.driver = driver

    def open_url(self,url):
        self.driver.get(url)

    def click(self,*loc):
        self.driver.find_element(*loc).click()

    def send_keys(self,*loc,text):
        self.driver.find_element(*loc).send_keys(text)

    # s = Select(self.driver.find_element(By.XPATH, '/html/body/div/ul/div[2]/div/div[3]/div[2]/div[3]/ul/li[1]/select'))
    # s.select_by_index(2)  # 下拉列表